//
//  Purchase.swift
//  Decorator
//
//  Created by LY on 2017/10/21.
//  Copyright © 2017年 DesignPatterns. All rights reserved.
//

import Foundation

class Purchase {
    private let product : String
    private let price : Float
    init(product:String,price:Float) {
        self.price = price
        self.product = product
    }
    var description : String {
        return product
    }
    var totalPrice : Float{
        return price
    }
}
